<!--<include file="public+header">-->

<!--{script}-->
$(function(){
	selectDistinct();
});

function updateBase(){
	$("#submit_button").attr("disabled", "disabled");
	$("#submit_button").val( 'add...' );
	Q.AjaxSubmit('baseAdd','<!--{:Q::U('jiajucompanyinfo/info')}-->','',complete);
}

function complete(data,status){
	$("#submit_button").attr("disabled", false);
	$("#submit_button").val( '更新' );
	if(status==1){
	}
}

function insertJiajucompanylogo(nAttachmentid){
	insertAttachmentthumb('jiajucompany_logo',nAttachmentid);
}

function selectDistinct(){
	var sHtml=windsforceAjaxhtml(_ROOT_+'/index.php?app=home&c=misc&a=district&type=district&provincevalue=<!--{$GLOBALS['_company_']['province_id']}-->&value=<!--{$GLOBALS['_company_']['city_id']}-->&isname=0&issite=0&opensite=1&opensite_=1&ele=1&elenameid=jiajucompanydistrict&elevalue='+encodeURIComponent('<!--{if isset($arrDistrict_)}--><!--{:implode(',',$arrDistrict_)}--><!--{/if}-->'),1);
	$('#jiajucompanydistinct').html(sHtml);
}

checkForm(updateBase);
<!--{/script}-->

	<section class="secondary_bar">
		<div class="breadcrumbs_container">
			<article class="breadcrumbs"><a href="<!--{:Q::U('public/fmain')}-->"><!--<lang package='Template'>-->主页<!--</lang>--></a> <div class="breadcrumb_divider"></div> <a class="current">修改基本资料</a></article>
		</div>
	</section>

	<section id="main" class="column">
		<article class="module width_full">
			<header><h3><!--<lang package='Template'>-->操作提示<!--</lang>--></h3></header>
			<div class="module_content">
				<ul>
					<li>自主管理，自己修改基本资料。</li>
				</ul>
			</div>
		</article>

		<article class="module width_full">
			<header><h3 class="tabs_involved">修改基本资料</h3>
				<ul class="tabs">
					<li class="active"><a href="<!--{:Q::U('jiajucompanyinfo/index')}-->">基本资料</a></li>
				</ul>
			</header>
			<form action="" method="post" id="baseAdd" class="validate">
				<div class="module_content">
					<fieldset>
						<label><b style="color:#ED145B;">基本资料</b></label>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_fullname">商家/公司全称<em class="red">*</em></label>
						<p><!--{$GLOBALS['_company_']['jiajucompany_fullname']}--></p>
						<div class="description">如需更改，请联系客服。</div>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_shortname">商家/公司简称<em class="red">*</em></label>
						<input type="text" name="jiajucompany_shortname" id="jiajucompany_shortname" class="{required:true,maxlength:100}" id="jiajucompany_shortname" value="<!--{$GLOBALS['_company_']['jiajucompany_shortname']}-->"/>
						<div class="description input_tips">公司/商家简称长度不能超过100</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_description">商家/公司美化描述</label>
						<input type="text" name="jiajucompany_description" id="jiajucompany_description" value="<!--{$GLOBALS['_company_']['jiajucompany_description']}-->" class="{maxlength:100}"/>
						<div class="description input_tips">例如：成都第一装修设计公司</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="site_id">当前站点</label>
						<p><!--{$arrCompany['site_name']}-->分站</p>
					</fieldset>
					<fieldset>
						<label for="province_id">所属地区</label>
						<p><!--{:Core_Extend::showDistrict(array('value'=>$GLOBALS['_company_']['province_id'].','.$GLOBALS['_company_']['city_id'].','.$GLOBALS['_company_']['district_id'].','.$GLOBALS['_company_']['community_id'],'opensite'=>1,'opensite_'=>0,'issite'=>1,'display'=>'0,'.(in_array($GLOBALS['_company_']['province_id'],array(1,2,9,22,32,33,34,35))?1:0).',1,1'))}--></p>
						<div class="description">商家所在位置</div>
					</fieldset>
					<fieldset>
						<label for="jiajucompanydistinct">服务区域</label>
						<div id="jiajucompanydistinct"></div>
					</fieldset>
					<fieldset>
						<label for="jiajucompanyhomeclass">家庭装修</label>
						<!--<foreach for="arrHomeclass">-->
						<input type="checkbox" <!--{if isset($arrHomeclass_) && in_array($value['jiajucompanyclass_id'],$arrHomeclass_)}-->checked="checked"<!--{/if}--> name="jiajucompanyhomeclass[]" value="<!--{$value['jiajucompanyclass_id']}-->"><!--{$value['jiajucompanyclass_name']}-->
						<!--</foreach>-->
					</fieldset>
					<fieldset>
						<label for="jiajucompanybusinessclass">商业装修</label>
						<!--<foreach for="arrBusinessclass">-->
						<input type="checkbox" <!--{if isset($arrBusinessclass_) && in_array($value['jiajucompanyclass_id'],$arrBusinessclass_)}-->checked="checked"<!--{/if}--> name="jiajucompanybusinessclass[]" value="<!--{$value['jiajucompanyclass_id']}-->"><!--{$value['jiajucompanyclass_name']}-->
						<!--</foreach>-->
					</fieldset>
					<fieldset>
						<label for="jiajucompanystyleclass">专长风格</label>
						<!--<foreach for="arrStyleclass">-->
						<input type="checkbox" <!--{if isset($arrStyleclass_) && in_array($value['jiajucompanyclass_id'],$arrStyleclass_)}-->checked="checked"<!--{/if}--> name="jiajucompanystyleclass[]" value="<!--{$value['jiajucompanyclass_id']}-->"><!--{$value['jiajucompanyclass_name']}-->
						<!--</foreach>-->
					</fieldset>
					<fieldset>
						<label for="jiajucompany_address">详细地址</label>
						<input type="text" name="jiajucompany_address" id="jiajucompany_address" value="<!--{$GLOBALS['_company_']['jiajucompany_address']}-->" class="{required:true,maxlength:250}"/>
						<div class="description input_tips">不需要重复输入省市区县，书写详细的村镇或街道地址</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_worktime">商家营业时间</label>
						<input type="text" name="jiajucompany_worktime" id="jiajucompany_worktime" class="{required:true,required:true,maxlength:250}" value="<!--{$GLOBALS['_company_']['jiajucompany_worktime']}-->" />
						<div class="description input_tips">如：周一至周五 上午9:00-下午18:00</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_site">商家网站</label>
						<input type="text" name="jiajucompany_site" id="jiajucompany_site" value="<!--{$GLOBALS['_company_']['jiajucompany_site']}-->" class="{url:true,maxlength:150}"/>
						<div class="description input_tips">商家的官方网址，格式如：http://www.baidu.com</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_logo">公司logo图标&nbsp;<span class="red" style="cursor:pointer;" onclick="$('#jiajucompany_logo').val('');">x</span></label>
						<input style="float:left;width:400px;" type="text" id="jiajucompany_logo" name="jiajucompany_logo" value="<!--{$GLOBALS['_company_']['jiajucompany_logo']}-->" readonly onmouseover="globalPreviewImg('jiajucompany_logo');" onmouseout="unglobalPreviewImg('jiajucompany_logo');" class="{required:true}"/>
						<input type="button" value="<!--<lang package='__COMMON_LANG__@Common'>-->媒体<!--</lang>-->" class="alt_btn" onclick="globalAddattachment('insertJiajucompanylogo',1,1);">
						<div class="description clear">只允许上传的图片</div>
						<div id="jiajucompany_logo-preview"></div>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_baidumap">商家地图&nbsp;<span class="red" style="cursor:pointer;" onclick="$('#jiajucompany_baidumap').val('');">x</span></label>
						<input style="float:left;width:400px;" type="text" id="jiajucompany_baidumap" name="jiajucompany_baidumap" value="<!--{$GLOBALS['_company_']['jiajucompany_baidumap']}-->" readonly class="{required:true}"/>
						<input type="button" value="<!--<lang package='__COMMON_LANG__@Common'>-->地图<!--</lang>-->" class="alt_btn" onclick="selectBaidumap('jiajucompany_baidumap');">
						<div class="description input_tips">商家的地理位置标注</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_jiaotong">交通方式</label>
						<textarea name="jiajucompany_jiaotong" id="jiajucompany_jiaotong" class="{maxlength:250}" style="height:50px;"><!--{$GLOBALS['_company_']['jiajucompany_jiaotong']}--></textarea>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_announcement">公司公告</label>
						<textarea name="jiajucompany_announcement" id="jiajucompany_announcement" class="{maxlength:100}" style="height:50px;"><!--{$GLOBALS['_company_']['jiajucompany_announcement']}--></textarea>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_foundingyear">公司成立年份</label>
						<select name="jiajucompany_foundingyear" id="jiajucompany_foundingyear">
							<option value="">- 请选择 -</option>
							<!--{~$nCurrentYear=date('Y')}-->
							<!--<for start='0' end='100' var='nBirthyear'>-->
							<option value="<!--{$nCurrentYear-$nBirthyear}-->" <!--{if $GLOBALS['_company_']['jiajucompany_foundingyear']==($nCurrentYear-$nBirthyear)}-->selected<!--{/if}-->><!--{$nCurrentYear-$nBirthyear}--></option>
							<!--</for>-->
						</select>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_outputid">公司产值</label>
						<select name="jiajucompany_outputid" id="jiajucompany_outputid">
							<option value="0">- 请选择 -</option>
							<!--<foreach for="arrOutput">-->
							<option value="<!--{$value['jiajucompanyclass_id']}-->" <!--{if $GLOBALS['_company_']['jiajucompany_outputid']==$value['jiajucompanyclass_id']}-->selected<!--{/if}-->><!--{$value['jiajucompanyclass_name']}--></option>
							<!--</foreach>-->
						</select>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_scaleid">公司规模</label>
						<select name="jiajucompany_scaleid" id="jiajucompany_scaleid">
							<option value="0">- 请选择 -</option>
							<!--<foreach for="arrScale">-->
							<option value="<!--{$value['jiajucompanyclass_id']}-->" <!--{if $GLOBALS['_company_']['jiajucompany_scaleid']==$value['jiajucompanyclass_id']}-->selected<!--{/if}-->><!--{$value['jiajucompanyclass_name']}--></option>
							<!--</foreach>-->
						</select>
					</fieldset>
					<fieldset>
						<label><b style="color:#ED145B;">联系方式</b></label>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_contactname">公司/商家联系人</label>
						<input type="text" name="jiajucompany_contactname" id="jiajucompany_contactname" class="{required:true,maxlength:20}" value="<!--{$GLOBALS['_company_']['jiajucompany_contactname']}-->" />
						<div class="description input_tips">商家对外公开的联系人，如：王先生</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_telephone">公司/商家联系电话</label>
						<input type="text" name="jiajucompany_telephone" id="jiajucompany_telephone" class="{required:true,maxlength:150}" value="<!--{$GLOBALS['_company_']['jiajucompany_telephone']}-->" />
						<div class="description input_tips">商家对外公开的联系电话，如：电话010-1234567，手机13000000000</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_qq">商家QQ</label>
						<input type="text" name="jiajucompany_qq" id="jiajucompany_qq" value="<!--{$GLOBALS['_company_']['jiajucompany_qq']}-->" class="{maxlength:50}"/>
						<div class="description input_tips">商家对外公开的qq，多个qq用逗号分割，如1234566,426652,8962211</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_email">商家邮箱</label>
						<input type="text" name="jiajucompany_email" id="jiajucompany_email" value="<!--{$GLOBALS['_company_']['jiajucompany_email']}-->" class="{email:true,maxlength:100}"/>
						<div class="description input_tips">商家对外公开的邮箱</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_fenji">400分机号码</label>
						<input type="text" name="jiajucompany_fenji" id="jiajucompany_fenji" value="<!--{$GLOBALS['_company_']['jiajucompany_fenji']}-->" class="{maxlength:50}"/>
						<div class="description input_tips">商家对外公开的400分机</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label><b style="color:#ED145B;">公司特色</b></label>
					</fieldset>
					<fieldset>
						<label for="jiajucompany_freeroom"><!--<lang package='__APPJIAJU_COMMON_LANG__@Template'>-->是否免费量房<!--</lang>--></label>
						<input type="radio" id="jiajucompany_freeroom" name="jiajucompany_freeroom" value="1" <!--{if $GLOBALS['_company_']['jiajucompany_freeroom']==1}-->checked="checked"<!--{/if}-->/><!--<lang package='Template'>-->是<!--</lang>-->
						<input type="radio" id="" name="jiajucompany_freeroom" value="0" <!--{if $GLOBALS['_company_']['jiajucompany_freeroom']==0}-->checked="checked"<!--{/if}--> /><!--<lang package='Template'>-->否<!--</lang>-->
					</fieldset>
					<fieldset>
						<label for="jiajucompany_safepayment"><!--<lang package='__APPJIAJU_COMMON_LANG__@Template'>-->是否先行赔付<!--</lang>--></label>
						<input type="radio" id="jiajucompany_safepayment" name="jiajucompany_safepayment" value="1" <!--{if $GLOBALS['_company_']['jiajucompany_safepayment']==1}-->checked="checked"<!--{/if}-->/><!--<lang package='Template'>-->是<!--</lang>-->
						<input type="radio" id="" name="jiajucompany_safepayment" value="0" <!--{if $GLOBALS['_company_']['jiajucompany_safepayment']==0}-->checked="checked"<!--{/if}--> /><!--<lang package='Template'>-->否<!--</lang>-->
					</fieldset>
					<fieldset>
						<label for="jiajucompany_satispayment"><!--<lang package='__APPJIAJU_COMMON_LANG__@Template'>-->是否满意后付款<!--</lang>--></label>
						<input type="radio" id="jiajucompany_satispayment" name="jiajucompany_satispayment" value="1" <!--{if $GLOBALS['_company_']['jiajucompany_satispayment']==1}-->checked="checked"<!--{/if}-->/><!--<lang package='Template'>-->是<!--</lang>-->
						<input type="radio" id="" name="jiajucompany_satispayment" value="0" <!--{if $GLOBALS['_company_']['jiajucompany_satispayment']==0}-->checked="checked"<!--{/if}--> /><!--<lang package='Template'>-->否<!--</lang>-->
					</fieldset>
					<fieldset>
						<label for="jiajucompany_freedesign"><!--<lang package='__APPJIAJU_COMMON_LANG__@Template'>-->是否免费设计<!--</lang>--></label>
						<input type="radio" id="jiajucompany_freedesign" name="jiajucompany_freedesign" value="1" <!--{if $GLOBALS['_company_']['jiajucompany_freedesign']==1}-->checked="checked"<!--{/if}-->/><!--<lang package='Template'>-->是<!--</lang>-->
						<input type="radio" id="" name="jiajucompany_freedesign" value="0" <!--{if $GLOBALS['_company_']['jiajucompany_freedesign']==0}-->checked="checked"<!--{/if}--> /><!--<lang package='Template'>-->否<!--</lang>-->
					</fieldset>
					<fieldset>
						<label for="jiajucompany_freerate"><!--<lang package='__APPJIAJU_COMMON_LANG__@Template'>-->是否免费估价<!--</lang>--></label>
						<input type="radio" id="jiajucompany_freerate" name="jiajucompany_freerate" value="1" <!--{if $GLOBALS['_company_']['jiajucompany_freerate']==1}-->checked="checked"<!--{/if}-->/><!--<lang package='Template'>-->是<!--</lang>-->
						<input type="radio" id="" name="jiajucompany_freerate" value="0" <!--{if $GLOBALS['_company_']['jiajucompany_freerate']==0}-->checked="checked"<!--{/if}--> /><!--<lang package='Template'>-->否<!--</lang>-->
					</fieldset>
					<fieldset>
						<label for="jiajucompany_freeplan"><!--<lang package='__APPJIAJU_COMMON_LANG__@Template'>-->是否免费方案<!--</lang>--></label>
						<input type="radio" id="jiajucompany_freeplan" name="jiajucompany_freeplan" value="1" <!--{if $GLOBALS['_company_']['jiajucompany_freeplan']==1}-->checked="checked"<!--{/if}-->/><!--<lang package='Template'>-->是<!--</lang>-->
						<input type="radio" id="" name="jiajucompany_freeplan" value="0" <!--{if $GLOBALS['_company_']['jiajucompany_freeplan']==0}-->checked="checked"<!--{/if}--> /><!--<lang package='Template'>-->否<!--</lang>-->
					</fieldset>
					<fieldset>
						<label for="jiajucompany_free5quality"><!--<lang package='__APPJIAJU_COMMON_LANG__@Template'>-->是否5年质保<!--</lang>--></label>
						<input type="radio" id="jiajucompany_free5quality" name="jiajucompany_free5quality" value="1" <!--{if $GLOBALS['_company_']['jiajucompany_free5quality']==1}-->checked="checked"<!--{/if}-->/><!--<lang package='Template'>-->是<!--</lang>-->
						<input type="radio" id="" name="jiajucompany_free5quality" value="0" <!--{if $GLOBALS['_company_']['jiajucompany_free5quality']==0}-->checked="checked"<!--{/if}--> /><!--<lang package='Template'>-->否<!--</lang>-->
					</fieldset>
					<fieldset>
						<label for="jiajucompany_freethree"><!--<lang package='__APPJIAJU_COMMON_LANG__@Template'>-->是否第三方监管<!--</lang>--></label>
						<input type="radio" id="jiajucompany_freethree" name="jiajucompany_freethree" value="1" <!--{if $GLOBALS['_company_']['jiajucompany_freethree']==1}-->checked="checked"<!--{/if}-->/><!--<lang package='Template'>-->是<!--</lang>-->
						<input type="radio" id="" name="jiajucompany_freethree" value="0" <!--{if $GLOBALS['_company_']['jiajucompany_freethree']==0}-->checked="checked"<!--{/if}--> /><!--<lang package='Template'>-->否<!--</lang>-->
					</fieldset>
					<fieldset>
						<label for="jiajucompany_freesoftdesign"><!--<lang package='__APPJIAJU_COMMON_LANG__@Template'>-->是否送软装设计<!--</lang>--></label>
						<input type="radio" id="jiajucompany_freesoftdesign" name="jiajucompany_freesoftdesign" value="1" <!--{if $GLOBALS['_company_']['jiajucompany_freesoftdesign']==1}-->checked="checked"<!--{/if}-->/><!--<lang package='Template'>-->是<!--</lang>-->
						<input type="radio" id="" name="jiajucompany_freesoftdesign" value="0" <!--{if $GLOBALS['_company_']['jiajucompany_freesoftdesign']==0}-->checked="checked"<!--{/if}--> /><!--<lang package='Template'>-->否<!--</lang>-->
					</fieldset>
				</div>
				<footer>
					<div class="submit_link">
						<input type="hidden" name="ajax" value="1">
						<input type="hidden" name="type" value="<!--{$nType}-->">
						<input type="submit" id="submit_button" value="更新" class="alt_btn">
						&nbsp;<input type="reset" value="<!--<lang package='Template'>-->重置<!--</lang>-->">
					</div>
				</footer>
			</form>
		</article>

<!--<include file="public+footer">-->